package com.yuexunit.finance.system.entity.lexicon;

/**
 * @author wenwenlong
 */
public enum OperateTypeEnum {

	UNKONWN("未知"), CREATE("新增"), ADDITION("追加"), RETURN("还款");

	private final String paramType;

	private OperateTypeEnum(String paramType) {
		this.paramType = paramType;
	}

	public String getValue() {
		return paramType;
	}

	/**
	 * 数字转为枚举类型
	 * @param value 0-未知,1-新增,2-追加,3-还款
	 * @return 参数类型枚举
	 */
	public static OperateTypeEnum valueOf(Integer value) {
		return values()[value.intValue()];
	}
}
